package com.candy.candyuser.model.controller;

import com.candy.candyuser.model.service.MockDubboService;
//import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author suYanLong
 * @version 1.0
 * @date 2023/6/1 10:41
 * @Description mock服务提供者
 * TODO 待解决：
 *  1、只订阅不提供服务怎么处理
 *  2、只提供不订阅服务怎么处理
 *  3、如果服务订阅相互依赖怎么启动
 *   解决方式：@DubboReference(check = false)启动不检查
 */
@RestController
@RequestMapping("mock")
//@DubboService
public class MockDubboController implements MockDubboService {

    @GetMapping("test")
    public void test() {
    }

}
